// packageAPI/pages/lifecycle/apiCategory/apiCategory.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    schema: [],
    formData: {
    },
    title: '',
    result: '',
    zh:'',
    apiType: '',
    remark: '',
    webUrl: '',
    apiName: '',
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    this.setData({
      apiType: options.zh,
      title: options.title,
      zh: options.zh,
      remark: options.remark,
      webUrl: options.webUrl
    })
    wx.onApiCategoryChange((res)=>{
      this.setData({
        result:res,
        apiName:'wx.onApiCategoryChange'
      })
    })
  },
  getApiCategory(){
    let res = wx.getApiCategory()
    this.setData({
      result:res,
      apiName:'wx.getApiCategory'
    })
  },
  onUnload() {
    wx.offApiCategoryChange()
  },
  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})